package com.atguigu.spring.circle;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class Logger {

	// execution(* com.mashibing.cycle.*.*(..))
	@Pointcut("execution(* com.atguigu.spring.circle.*.*(..))")
	public void pointCut(){

	}


	@Before("pointCut()")
	public void before(){
		System.out.println("before aspect");
	}


	@After("pointCut()")
	public void after(){
		System.out.println("after aspect");
	}

}
